package factory;

public class KongtiaoFactory {

    public static Ikongtiao getInstance(String name) {
        if (name.equals("bianpin")) {
            return new BianpinImpl();
        } else if (name.equals("jieneng")) {
         return new JienengImpl();
        }
        return null;
    }
}
